// Example model

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const UserSchema = new Schema({
    openid: {
        type: String,
        required: '`openid`是必填参数'
    },
    creatAt: {
        type: String,
        require: '`createAt`是必填参数'
    },
    conversationCount: {
        type: Number,
        default: 0
    }
});


mongoose.model('User', UserSchema);
